package com.study.aop.theory.proxy;

import com.study.aop.theory.service.KtvService;
import com.study.aop.theory.service.impl.KtvPrincessB;

/**
 * JDK(静态)代理类使用demo
 *
 * @author: chenhs
 * @date: Created in 16:02 2019/12/8
 **/
public class StaticProxyMain {

    public static void main(String[] args) {

        System.out.println("--------------static proxy--------------");
        KtvService pb = new KtvPrincessB();
        KtvService proxy = new StaticProxy(pb);
        proxy.momoSing("mike");


        //System.out.println("--------------dynamic proxy--------------");



    }
}
